<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html> 
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Informaci??e Empleados</title>
    </head>
    <body>
        <h1><FONT FACE="Times New Roman" SIZE=8 COLOR=#19070B><b> Empleados </b></h1>


        <form action="./EmpleadoRestringidoServlet" method="POST">
            <input type="submit" name="action" value="Volver" />
            <table>
                <tr>
                    <td><FONT FACE="Times New Roman" SIZE=4 COLOR=#19070B><b>DNI</b></td>
                    <td><input type="text" name="DNI" value="${Empleados.DNI}" /></td>
                </tr>
                <tr>
                    <td><FONT FACE="Times New Roman" SIZE=4 COLOR=#19070B><b>Nombre</b></td>
                    <td><input type="text" name="Nombre" value="${Empleados.Nombre}" /></td>
                </tr>
                <tr>
                    <td><FONT FACE="Times New Roman" SIZE=4 COLOR=#19070B><b> Apellidos </b></td>
                    <td><input type="text" name="Apellidos" value="${Empleados.Apellidos}" /></td>
                </tr>

                <tr>
                    <td><FONT FACE="Times New Roman" SIZE=4 COLOR=#19070B><b> Departamento </b></td>
                    <td><input type="text" name="Departamento" value="${Empleados.Departamento}" /></td>
                </tr>
                <tr>
                    <td><FONT FACE="Times New Roman" SIZE=4 COLOR=#19070B><b> Sucursal </b></td>
                    <td><select name="Sucursal">
                            <option type="text" name="Sucursal" value="Soria"> Soria </option>
                            <option type="text" name="Sucursal" value="Teruel"> Teruel </option>
                        </select></td>
                </tr>
                <tr>
                    <td><FONT FACE="Times New Roman" SIZE=4 COLOR=#19070B><b> Opciones </b></td>

                    <td colspan="2">
                        <input type="submit" name="action" value="Buscar Empleado" />
                        <input type="submit" name="action" value="Buscar todos" />

                    </td>                
                </tr>    


            </table>
            <table>
                <tr>
                    <td> <font color="#FF0000"><b><c:out value="${mensajesERROR}"/></b></font> </td>
                    <td> <font color="#74DF00"><b><c:out value="${mensajesOK}"/></b></font> </td>
                </tr>
            </table>
        </form>        
        <br>
        <table border="1">
            <th><FONT FACE="Times New Roman" SIZE=3> DNI </th>
            <th><FONT FACE= "Times New Roman" SIZE=3> Nombre </th>
            <th><FONT FACE= "Times New Roman" SIZE=3> Apellidos </th>
            <th><FONT FACE= "Times New Roman" SIZE=3> Departamento </th>
            <th><FONT FACE= "Times New Roman" SIZE=3> Sucursal </th>
                <c:forEach items="${allEmpleados}" var="emp">
                <tr>
                    <td><center><FONT FACE="Times New Roman" SIZE=3 >${emp.DNI}</center></td>
            <td><center><FONT FACE="Times New Roman" SIZE=3>${emp.nombre}</center></td>
        <td><center><FONT FACE="Times New Roman" SIZE=3>${emp.apellidos}</center></td>
    <td><center><FONT FACE="Times New Roman" SIZE=3>${emp.departamento}</center></td>
<td><center><FONT FACE="Times New Roman" SIZE=3>${emp.sucursal}</center></td>
</tr>
</c:forEach>
</table>
<style type="text/css"> 
    body{ 
        background-image: url(http://www.ilmoamal.org/bms/attachments/course_pics/qr_ch_2_unit15_Welcome_Guests.jpg); 
        background-repeat : no-repeat; 
        background-attachment : fixed; 
        background-size: contain;
        background-position: right top ;
    } 
</style>


</body>
</html>



